import React from 'react'
import { HashRouter as Router, Switch, Route, Redirect } from "react-router-dom"
import Home from "../pages/home/Home";
import Register from "../pages/register/Register";
import Live from "../pages/live/live";
import Deatil from "../pages/detail/Detail";
import Notfound from '../pages/Notfound';

export default function index() {
    return (
        <Router>
            <Switch>
                <Route path="/" component={Home} exact></Route>
                <Route path="/register" component={Register} ></Route>
                <Route path="/live" component={Live} ></Route>
                <Route path="/detail" component={Deatil} ></Route>
                <Route path="*" component={Notfound} ></Route>
            </Switch>
        </Router>
    )
}
